package com.zsk.shop.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
@ApiModel("修改规则参数实体类")
public class EditRuleParams {
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;
    @Size(max = 30, message = "标题长度不能超过30")
    @ApiModelProperty(name = "title", value = "标题", dataType = "String")
    private String title;
    @ApiModelProperty(name = "content", value = "内容", dataType = "String")
    private String content;
}
